class hotuserinfobean {
  HotUserInfoTotalVo hotUserInfoTotalVo;
  List<LineHotUserInfoTotalVos> lineHotUserInfoTotalVos;

  hotuserinfobean({this.hotUserInfoTotalVo, this.lineHotUserInfoTotalVos});

  hotuserinfobean.fromJson(Map<String, dynamic> json) {
    hotUserInfoTotalVo = json['hotUserInfoTotalVo'] != null
        ? new HotUserInfoTotalVo.fromJson(json['hotUserInfoTotalVo'])
        : null;
    if (json['lineHotUserInfoTotalVos'] != null) {
      lineHotUserInfoTotalVos = new List<LineHotUserInfoTotalVos>();
      json['lineHotUserInfoTotalVos'].forEach((v) {
        lineHotUserInfoTotalVos.add(new LineHotUserInfoTotalVos.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.hotUserInfoTotalVo != null) {
      data['hotUserInfoTotalVo'] = this.hotUserInfoTotalVo.toJson();
    }
    if (this.lineHotUserInfoTotalVos != null) {
      data['lineHotUserInfoTotalVos'] =
          this.lineHotUserInfoTotalVos.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class HotUserInfoTotalVo {
  var totalHotUserNum;
  var stopHotUserNum;
  var totalInstantFlow;
  var totalSellHot;
  String totalPipeDamage;




  HotUserInfoTotalVo(
      {this.totalHotUserNum,
        this.stopHotUserNum,
        this.totalInstantFlow,
        this.totalSellHot,
        this.totalPipeDamage});

  HotUserInfoTotalVo.fromJson(Map<String, dynamic> json) {
    totalHotUserNum = json['totalHotUserNum'];
    stopHotUserNum = json['stopHotUserNum'];
    totalInstantFlow = json['totalInstantFlow'];
    totalSellHot = json['totalSellHot'];
    totalPipeDamage = json['totalPipeDamage'];

  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['totalHotUserNum'] = this.totalHotUserNum;
    data['stopHotUserNum'] = this.stopHotUserNum;
    data['totalInstantFlow'] = this.totalInstantFlow;
    data['totalSellHot'] = this.totalSellHot;
    data['totalPipeDamage'] = this.totalPipeDamage;

    return data;
  }
}

class LineHotUserInfoTotalVos {
  String lineName;
  int totalHotUserNumLine;
  int stopHotUserNumLine;
  int totalInstantFlowLine;
  int totalSellHotLine;
  String totalPipeDamageLine;
  List<FocusHotUserVos> focusHotUserVos;

  LineHotUserInfoTotalVos(
      {this.lineName,
        this.totalHotUserNumLine,
        this.stopHotUserNumLine,
        this.totalInstantFlowLine,
        this.totalSellHotLine,
        this.totalPipeDamageLine,
        this.focusHotUserVos});

  LineHotUserInfoTotalVos.fromJson(Map<String, dynamic> json) {
    lineName = json['lineName'];
    totalHotUserNumLine = json['totalHotUserNumLine'];
    stopHotUserNumLine = json['stopHotUserNumLine'];
    // totalInstantFlowLine = json['totalInstantFlowLine'];
    // totalSellHotLine = json['totalSellHotLine'];
    totalPipeDamageLine = json['totalPipeDamageLine'];
    if (json['focusHotUserVos'] != null) {
      focusHotUserVos = new List<FocusHotUserVos>();
      json['focusHotUserVos'].forEach((v) {
        focusHotUserVos.add(new FocusHotUserVos.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['lineName'] = this.lineName;
    data['totalHotUserNumLine'] = this.totalHotUserNumLine;
    data['stopHotUserNumLine'] = this.stopHotUserNumLine;
    data['totalInstantFlowLine'] = this.totalInstantFlowLine;
    data['totalSellHotLine'] = this.totalSellHotLine;
    data['totalPipeDamageLine'] = this.totalPipeDamageLine;
    if (this.focusHotUserVos != null) {
      data['focusHotUserVos'] =
          this.focusHotUserVos.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class FocusHotUserVos {
  String id;
  int state;
  String lineName;
  int branch;
  int type;
  int focusUser;
  String userNumber;
  String fullName;
  double jobTemperature;
  double afterValveTemperature;
  double jobStress;
  double instantFlow;
  double totalFlow;
  double surplusFlow;

  int valveStatus;
  int dataStatus;
  int communicationStatus;
  int alarmStatus;
  String newest;
  String latestRechargeTime;
  double latestRechargeMoney;
  double balance;
  String phone;
  double steam;
  double limposition;
  int valveControl;
  int balanceShow;
  int steamShow;

  FocusHotUserVos(
      {this.id,
        this.state,
        this.lineName,
        this.branch,
        this.type,
        this.focusUser,
        this.userNumber,
        this.fullName,
        this.jobTemperature,
        this.afterValveTemperature,
        this.jobStress,
        this.instantFlow,
        this.totalFlow,
        this.surplusFlow,
        this.valveStatus,
        this.dataStatus,
        this.communicationStatus,
        this.alarmStatus,
        this.newest,
        this.latestRechargeTime,
        this.latestRechargeMoney,
        this.balance,
        this.steam,
        this.limposition,
        this.valveControl,
        this.balanceShow,
        this.steamShow});

  FocusHotUserVos.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    state = json['state'];
    lineName = json['lineName'];
    branch = json['branch'];
    type = json['type'];

    if(null == json['phone']){
      phone = "";
    }else{
      phone = json['phone'];
    }



    focusUser = json['focusUser'];
    userNumber = json['userNumber'];
    fullName = json['fullName'];
    jobTemperature = json['jobTemperature'];
    afterValveTemperature = json['afterValveTemperature'];
    jobStress = json['jobStress'];
    instantFlow = json['instantFlow'];
    totalFlow = json['totalFlow'];
    surplusFlow = json['surplusFlow'];
    valveStatus = json['valveStatus'];
    dataStatus = json['dataStatus'];
    communicationStatus = json['communicationStatus'];
    alarmStatus = json['alarmStatus'];
    newest = json['newest'];
    latestRechargeTime = json['latestRechargeTime'];
    latestRechargeMoney = json['latestRechargeMoney'];
    balance = json['balance'];
    steam = json['steam'];
    limposition = json['limposition'];
    valveControl = json['valveControl'];
    balanceShow = json['balanceShow'];
    steamShow = json['steamShow'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['state'] = this.state;
    data['lineName'] = this.lineName;
    data['branch'] = this.branch;
    data['type'] = this.type;
    data['focusUser'] = this.focusUser;
    data['userNumber'] = this.userNumber;
    data['fullName'] = this.fullName;
    data['jobTemperature'] = this.jobTemperature;
    data['afterValveTemperature'] = this.afterValveTemperature;
    data['jobStress'] = this.jobStress;
    data['instantFlow'] = this.instantFlow;
    data['totalFlow'] = this.totalFlow;
    data['phone'] = this.phone;
    data['surplusFlow'] = this.surplusFlow;
    data['valveStatus'] = this.valveStatus;
    data['dataStatus'] = this.dataStatus;
    data['communicationStatus'] = this.communicationStatus;
    data['alarmStatus'] = this.alarmStatus;
    data['newest'] = this.newest;
    data['latestRechargeTime'] = this.latestRechargeTime;
    data['latestRechargeMoney'] = this.latestRechargeMoney;
    data['balance'] = this.balance;
    data['steam'] = this.steam;
    data['limposition'] = this.limposition;
    data['valveControl'] = this.valveControl;
    data['balanceShow'] = this.balanceShow;
    data['steamShow'] = this.steamShow;
    return data;
  }
}